'use strict';
/**
 * model
 */
export default class extends think.model.mongo {
    init(...args){
        super.init(...args);
        //设置字段
        this.schema = {
            title: {
                type: "string"
            },
            content: {
                type: "string"
            },
            cate:{
                type: "string"
            },
            cover:{
                type: "string"
            },
            top:{
                type: "int"
            },
            createTime : {
                type: Date,
                default: Date.now
            }
        }
    }
}